package com.demo.rxjavademo.app;

import android.app.Application;
import android.content.Context;

import com.facebook.drawee.backends.pipeline.Fresco;
import com.orhanobut.logger.Logger;

/**
 * Created by Administrator on 2016/12/23.
 */

public class App extends Application {
    private static Context mContext;
    private static App mApp=null;

    public static App getInstance() {
        return mApp;
    }

    @Override
    public void onCreate() {
        super.onCreate();
        mApp=this;
        mContext = this.getApplicationContext();
        Fresco.initialize(this);
        Logger.init("Zhihu");
    }

    public static Context getContext() {
        return mContext;
    }
}
